<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<html>

<head>
<title>Customer Registration Form</title>

<style>
.error {
	color: red
}
.custom {
	border: solid 1px;
	padding: 10px 80px;
	width: 40%;
}
</style>
</head>
<body>
	<h1>Spring MVC 5 - Custom Validation Rules Example</h1>
	<i>Fill out the form. Asterisk (*) means required.</i>
	<br>
	<br>
	<div class="custom">
		<form action="${pageContext.request.contextPath}/ch03/multiModel/submit" method="POST">
		    学生姓名:<input type="text" name="stu.name"><br/>
		    老师姓名:<input type="text" name="teacher.name"><br/>
		    <input type="submit" value="提交">
		</form>
	</div>
</body>

</html>